﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace OA
{
    public partial class OpenIEForm : Form
    {
        public string UserName { get; set; }
        public string PassWord { get; set; }
        public OpenIEForm()
        {
            InitializeComponent();
        }
        public OpenIEForm(string username, string password)
        {
            InitializeComponent();
            this.UserName = username;
            this.PassWord = password;
        }

        private void OpenIEForm_Load(object sender, EventArgs e)
        {
            wbIE.Url = new Uri("http://oa.hdsxtech.com:8080/ispirit/myoa.php?UNAME=" + UserName + "&PASSWORD=" + PassWord + "&TIME=" + DateTime.Now.ToString("HHmmss") + "&I_VER=2");
            
        }

        private void wbIE_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
        {
            this.Text = wbIE.Document.Title;
        }
    }
}
